import requests,json
from os import getenv

def reportWeather():
    api_url ='http://apis.juhe.cn/simpleWeather/query'
    para={'key':getenv('api_key'),
          'city':getenv('weather_city')
         }

    r = requests.get(api_url,para)

    responseJson = json.loads(r.text)

    info='当前气温：{}℃'.format(responseJson['result']['realtime']['temperature'])
    for i in responseJson['result']['future']:
        info+='\n'+i['date']+'  '+i['temperature']+'  '+i['weather']
    return info